package com.job.shuang.HomeWork0709.JichengDuotai;

import com.job.springsea.work0707.MyHelper;

import java.sql.SQLOutput;
import java.util.Date;

/**
 * @author Liushuang
 * @version 1.0
 * @since 2022-07-09 21:27:59
 */
public class Lead extends Person {  //子类，继承->人
    protected String section;  //所在部门
    protected String salary;  //工资

    AttendWorkDate date;

    public Lead(int year,int month,int day){
        this.date=new AttendWorkDate(year,month,day);
    }

    public Lead() {

    }

    public String getSection() {
        return section;
    }

    public void setSection(String section) {
        this.section = section;
    }

    public String getSalary() {
        return salary;
    }

    public void setSalary(String salary) {
        this.salary = salary;
    }

    public void introduction(){
        System.out.println("我所在的部门："+section+"我的工资是："+salary+"我的入职时间是："+AttendWorkDate.year+"年");
    }
}
